var Api = {
	//获取会员列表
	memberList : function(page,num,search,cb){
		$.post("/admin/memberList",{page:page,num:num,search:search},function(json){
			cb(json);
		},'json')
	},
	//根据ID删除会员
	delMember : function(id,cb){
		$.post("/admin/delMember",{ids:id},function(json){
			cb(json);
		},"json")
	},
	//根据ID删除单个会员
	delMemberById : function(id,cb){
		$.post("/admin/delMemberById",{id:id},function(json){
			cb(json);
		},"json")
	},
	//锁定会员
	lockMember : function(id,cb){
		$.post("/admin/lockMember",{id:id},function(json){
			cb(json);
		},"json")
	},
	//解锁会员
	delLockMember : function(id,cb){
		$.post("/admin/delLockMember",{id:id},function(json){
			cb(json);
		},"json")
	},
	//审核会员列表
	checkMemberList : function(page,num,search,cb){
		$.post("/admin/checkMemberList",{page:page,num:num,search:search},function(json){
			cb(json);
		},'json')
	},
	//审核通过
	delCheckMember : function(id,cb){
		$.post("/admin/delCheckMember",{id:id},function(json){
			cb(json);
		},"json")
	},
	//发送审核结果给用户
	messageMember : function(isPass,phone,cb){
		$.post("/admin/message",{isPass:isPass,phone:phone},function(json){
			cb(json);
		},"json")
	},
	//会员详情
	getOneMember : function(id,cb){
		$.post("/admin/getOneMember",{id:id},function(json){
			cb(json);
		},"json")
	},
	getAnalysis: function(cb){
		$.post("/admin/GetAnalysis",{},function(json){
			cb(json);
		},"json")
	},
	getAllNum:function(cb){
		$.post("/admin/GetAllNum",{},function(json){
			cb(json);
		},"json")
	},
	getOnlineNum:function(num,cb){
		$.post("/admin/UserOnlineNum",{num:num},function(json){
			cb(json);
		},"json")
	},
	//团队列表
	TeamList : function(page,num,search,cb){
		$.post("/admin/TeamList",{page:page,num:num,search:search},function(json){
			cb(json);
		},'json')
	},
	//个人约战
	PersonalList : function(page,num,search,cb){
		$.post("/admin/PersonalList",{page:page,num:num,search:search},function(json){
			cb(json);
		},'json')
	},
	//删除个人活动
	delPersonaList : function(id,cb){
		$.post("/admin/delSelPersonalList",{ids:id},function(json){
			cb(json);
		},'json')
	},
	//根据ID删除个人活动
	delPersonalPkById : function(id,cb){
		$.post("/admin/delPersonalPkById",{id:id},function(json){
			cb(json);
		},"json")
	},
	//团队约战
	TeampkList : function(page,num,search,cb){
		$.post("/admin/TeampkList",{page:page,num:num,search:search},function(json){
			cb(json);
		},'json')
	},
	//删除团队列表
	delTeamList : function(id,cb){
		$.post("/admin/delSelTeamList",{ids:id},function(json){
			cb(json);
		},'json')
	},
	//根据ID删除团队约战
	delTeamPkById : function(id,cb){
		$.post("/admin/delTeamPkById",{id:id},function(json){
			cb(json);
		},"json")
	},
	//直播列表
	liveList : function(page,num,search,cb){
		$.post("/admin/liveList",{page:page,num:num,search:search},function(json){
			cb(json);
		},'json')
	},
	//删除直播列表
	delLiveList : function(id,cb){
		$.post("/admin/delLiveList",{ids:id},function(json){
			cb(json);
		},'json')
	},
	//根据ID删除直播间
	delLiveById : function(id,cb){
		$.post("/admin/delLiveById",{id:id},function(json){
			cb(json);
		},"json")
	},
	//新增直播检测用户ID
	checkLiveById : function(id,cb){
		$.post("/admin/checkLiveByid",{id:id},function(json){
			cb(json);
		},'json')
	},
	//新增直播
	addLive : function(title,cover,host_uid,host_avatar,host_username,av_room_id,chat_room_id,cb){
		$.post("/admin/addLive",{title:title,cover:cover,host_uid:host_uid,host_avatar:host_avatar,host_username:host_username,av_room_id:av_room_id,chat_room_id:chat_room_id},function(json){
			cb(json);
		},'json')
	},
	//获取直播用户ID
	checkLiveById : function(id,cb){
		$.post("/admin/byUserId",{id:id},function(json){
			cb(json);
		},'json')
	},
	//获取直播用户ID
	byLiveId : function(id,cb){
		$.post("/admin/byLiveId",{id:id},function(json){
			cb(json);
		},'json')
	},
	//修改直播
	editLive : function(id,title,cover,host_uid,host_avatar,host_username,av_room_id,chat_room_id,cb){
		$.post("/admin/editLive",{id:id,title:title,cover:cover,host_uid:host_uid,host_avatar:host_avatar,host_username:host_username,av_room_id:av_room_id,chat_room_id:chat_room_id},function(json){
			cb(json);
		},'json')
	},
	//获取讯飞签名
	getSign : function(id,cb){
		$.post("/admin/signNum",{id:id},function(json){
			cb(json);
		},'json')
	},
	getSportTyeList : function(page,num,search,cb){
		$.post("/admin/sportTypeList",{page:page,num:num,search:search},function(json){
			cb(json);
		},'json')
	},
	addSport : function(title,sport_img,cb){
		$.post("/admin/addSportType",{title:title,sport_img:sport_img},function(json){
			cb(json);
		},'json')
	},
	editSport : function(id,title,sport_img,cb){
		$.post("/admin/editSportType",{id:id,title:title,sport_img:sport_img},function(json){
			cb(json);
		},'json')
	},
	delSportType : function(id,title,cb){
		$.post("/admin/delSportType",{ids:id},function(json){
			cb(json);
		},'json')
	},
	//获取运动ID
	bySportTypeId : function(id,cb){
		$.post("/admin/bySportTypeId",{id:id},function(json){
			cb(json);
		},'json')
	},
	//批量删除运动列表
	delSportList : function(id,cb){
		$.post("/admin/delSportList",{ids:id},function(json){
			cb(json);
		},'json')
	},
	//根据ID删除运动
	delSportById : function(id,cb){
		$.post("/admin/delSportById",{id:id},function(json){
			cb(json);
		},"json")
	}
};

